php forum
php mysql forum
php mysql smarty
 
Page 1 of 5 1 2 3 4 5 >
Topic Options
#155211 - 10/28/02 12:57 AM [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Name: ubb.db

Description: Adds a plug-n-play file database to your site with ubb authentication.

Original Author: Cal (thank you for permission to distribute laugh )

Credits and Thank yous:
- LK for the majority of the grunt work updating from the v5 series it was written for and adding additional admin features smile
- Mark Badolato for code optimization and putting up with my questions wink
- Charles for code assistance smile
- Burak for code assistance smile
- Clankiller for bugfixes smile

Link: http://www.ubbdev.com/ubb/upload/00000494/ubbdb.zip

Demo: http://www.ubbdev.com/ubbcgi/db.cgi

Requirement: UBB™ 6.3+

Install Notes:
- Unzip the file and upload the cgi-bin contents to your ubb cgi directory in ascii, setting permissions to 755. Upload the /uploads folder to your ubb non-cgi directory and set permissions to 777.
- Access your admin at db.cgi?action=admin there are some 'starter' categories in there you can edit.
- A method was added to make using additional file types easir to upload. Line # 282:

Quote:
code:</font><hr />
Code:
my ($base, $path, $ext) = fileparse($zip, qr{.(zip|txt|jpg)});
<hr /></blockquote>Change the (zip|txt|jpg) to add whatever file types you need. For example, to add .gif file, you would change that line to read:
<blockquote><font class="small">code:
[qb]
Code:
my ($base, $path, $ext) = fileparse($zip, qr{.(zip|txt|gif|jpg)});
[/qb]
To-Do:
- templates
- better customization features
- continuing optimizing code

Changelog:
- Nov. 29, 2002 - v2.9 - bugfixes and minor updates (thanks Clankiller)
- Nov. 20, 2002 - v2.8 - removed unused code (thanks Burak smile )
- Nov. 20, 2002 - v2.7 - Added easier method to upload additional file types (thanks Mark smile )
- Nov. 11, 2002 - v2.5 - Wordlets Done
- Oct. 28, 2002 - Initial Update for v6.3+
- Way way back - cal henderson wrote this for ubbcodehackers and ubb v5
_________________________
- Allen wavey
- What Drives You?

Top
#155212 - 10/28/02 04:08 AM Re: [6.3.x] [beta] ubb.db v2.9
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Wow, this is great... Thanks Allen smile

BTW: Is this gonna be used with the Portal? wink

Top
#155213 - 10/28/02 05:11 AM Re: [6.3.x] [beta] ubb.db v2.9
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Allen, did you remove the option of "Create new thread"?
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#155214 - 10/28/02 09:46 AM Re: [6.3.x] [beta] ubb.db v2.9
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
I guess I am a bit ignorant - what does this add ? That is what does having a "plug n play database" do for the board?

Top
#155215 - 10/28/02 09:59 AM Re: [6.3.x] [beta] ubb.db v2.9
Shriveled Toe Offline
Member

Registered: 08/05/02
Posts: 64
Woah... hey. I know a guy who was looking for this very thing a while back. I told him to just create a Forum called Downloads and stick the links in there... this is much *much* nicer.

Thanks

Top
#155216 - 10/28/02 12:33 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
No LK, forgot that tipsy

The 'create new threads' needs to be left unchecked. We'll most likely remove it completely in the next update. Your ubb header and footer can be added easily as well. it'll be included in the next version too smile
_________________________
- Allen wavey
- What Drives You?

Top
#155217 - 10/28/02 12:35 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Quote:
quote:
Originally posted by CTM:
Wow, this is great... Thanks Allen smile

BTW: Is this gonna be used with the Portal? wink
welcome smile

This will probably become part of the portal, once the coding issues are worked out and modularization issues are worked out for the portal project. That's under the 'code optimization' todo list smile
_________________________
- Allen wavey
- What Drives You?

Top
#155218 - 10/29/02 12:42 AM Re: [6.3.x] [beta] ubb.db v2.9
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Great work with this, should be a good addition to many forums. smile

Top
#155219 - 10/29/02 11:10 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
danke smile

It'll be more useful once we get the wordlets and a few other tidbits done smile
_________________________
- Allen wavey
- What Drives You?

Top
#155220 - 10/29/02 03:41 PM Re: [6.3.x] [beta] ubb.db v2.9
Greg Hard Offline
Member

Registered: 02/21/00
Posts: 5533
Loc: My Room
Good job Allen. (And Mark, LK and CC)

Top
#155221 - 10/29/02 10:25 PM Re: [6.3.x] [beta] ubb.db v2.9
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
Quote:
quote:
Originally posted by CaCoffin:
I guess I am a bit ignorant - what does this add ? That is what does having a "plug n play database" do for the board?
Eh?

Top
#155222 - 10/30/02 10:32 AM Re: [6.3.x] [beta] ubb.db v2.9
bobbel Offline
Junior Member

Registered: 09/04/02
Posts: 16
Very very cool !!!

Thanks a lot for this pluggin laugh
Very usefull!!!

bobbel

Top
#155223 - 10/31/02 01:33 PM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
I don't see any catagories, and the on.gif and off.gif files point to my webpage root, obviously they don't exist.

Top
#155224 - 10/31/02 01:48 PM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
OK nm - I uploaded the CONTENTS of the uploads folder, not the folder itself. Obviously we have to modify for our own icons everywhere I assume? No problem if so...

Top
#155225 - 10/31/02 04:54 PM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
OK, got everything figured except the files won't actually upload. The form submits ok, but it's pathing with the complete path including my local drive.

Top
#155226 - 10/31/02 04:56 PM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
Ah...i see there is a file check for .zip - you need to have it reject the form if a non .zip is trying to be uploaded...I will try to figure out how to modify this because I am only going to use it for .jpg

Top
#155227 - 11/01/02 10:36 AM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
OK, got everything figured out except how to easily add my header and footer...help?

Top
#155228 - 11/01/02 10:40 AM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
I want to have this come up as one of my forum section, like instead fo seeing threads, I want to see the db section with all my formatting. After figuring out how to use the header and footer, I think it just means creating a new forum section, then modifying the forum record to display the db.cgi instead of the forum code. Help?

Top
#155229 - 11/01/02 10:58 AM Re: [6.3.x] [beta] ubb.db v2.9
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
Quote:
quote:</font><hr />Originally posted by CaCoffin:
<blockquote><font class="small">quote:
[qb]Originally posted by CaCoffin:
I guess I am a bit ignorant - what does this add ? That is what does having a "plug n play database" do for the board?[/qb]
Eh?<hr /></blockquote>Man I must be the biggest idiot in the world that I am the only one who does not understand the purpose of this MOD.

Such an idiot that it is obviously so apparent that not one person has chosen to add a few lines explaining.

Would anyone care to enlighten this idiot?

Top
#155230 - 11/01/02 05:10 PM Re: [6.3.x] [beta] ubb.db v2.9
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Yeah, it's not immediately apparent what it is. It's a file database. Users can upload items and have them displayed and indexed.

bglynn - that's a heck of a lot of work you're looking at there... can you explain why you want to change the look so much?
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#155231 - 11/01/02 05:57 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I'll add the header/footer to this once I get back in town bglynn, along with doing wordlets so it's more easily customized smile
_________________________
- Allen wavey
- What Drives You?

Top
#155232 - 11/01/02 07:47 PM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
OK, first, QUICKREPLY FARKING SUCKS! That's TWICE I lost the message because something was wrong witht he post, and the back button wipes it clean! ARGH!

This is bglynn, I switched emails and can't retrieve my old password.

Ca - click on the demo link in the first post - it's self explanitory.

Charles - I'm making a profile driectory like this one. Here are a couple rough examples: add entry , pic demo

Top
#155233 - 11/01/02 08:23 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
quickreply is optional wink

Nice adaptation smile You can add your forum's header/footer in the lib.cgi - check for this :

<html

If you use the same variables as used in public_common.pl, you should be able to easily add them. I'll get them Monday tho for the rest smile
_________________________
- Allen wavey
- What Drives You?

Top
#155234 - 11/01/02 09:07 PM Re: [6.3.x] [beta] ubb.db v2.9
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
Quote:
quote:
Originally posted by Charles Capps:
Yeah, it's not immediately apparent what it is. It's a file database. Users can upload items and have them displayed and indexed.

Ok, thank you.

I am already using an upload utility for people to upload files for posting, but there is no way for them to see what has been uploaded so it looks like it is probably a better way to go.

Thank you!

Top
#155235 - 11/01/02 10:47 PM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
Well that\'s looking better now! Thanks!

Top
#155236 - 11/03/02 02:03 AM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
Hey if anyone is around right now, I'm running into something weird - whenever there is more than one entry in a catagory, the table gets all garbled - I'm trying to compare teh code but I'm not sure where it's not tripping right...

http://www.sbtontheweb.com/cgi-bin/db.cgi?action=cat;id=1

Top
#155237 - 11/03/02 01:12 PM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
OK, I found the problem...I have a textarea field, and wheneer someone uses a hard return it screws up the datatable. I need to find out how to have it convert to &nbsp. For now I changed the textarea to a text field.

Top
#155238 - 11/03/02 01:31 PM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
I'm also having a problem where if the contributing member ID is switched on all records int he catagory to the last entry's name.

Top
#155239 - 11/03/02 01:45 PM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
OK, I had a problem with file uploading, turns out that it's rejecting anything with an upper case extension, I imagine that will be easy to fix, probably add an or statement or something...new to programming, bear with me.

I wonder if you ran into the same ID problem, since you don't display the member name on the individual forms? For now I took mine off as well, they are only stored and displayed correctly on the Cat display page. I would like to have it array them correctly in each record though...

Top
#155240 - 11/03/02 01:51 PM Re: [6.3.x] [beta] ubb.db v2.9
kaelaria Offline
Junior Member

Registered: 11/01/02
Posts: 7
Wow, it worked...this stuff is kinda fun! Takes me back to HS smile

Top
#155241 - 11/03/02 06:02 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
I didnt look at the code, but in the db.cgi file, you are loading an unnecessary module 'UBBCGI'... The codes below are using 'CGI' ...

Quote:
code:</font><hr />
Code:
use CGI qw(:standard);
use UBBCGI ':cgi';
<hr /></blockquote>also, you are not using %in... so, this code is unnecessary also:

<blockquote><font class="small">code:
[qb]
Code:
%in = map{
	my @z = param($_);
	( scalar(@z) > 1 ?
		( $_ => join(",", @z) ) :
		( $_ => $z[0] )
		)
	} param();
[/qb]
_________________________
one bytecode to rule them all

Top
#155242 - 11/04/02 03:46 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thankyou Burak, I'll update the zip tomorrow - let me know if you see anything else please? smile
_________________________
- Allen wavey
- What Drives You?

Top
#155243 - 11/04/02 10:54 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Hey kaelaria, if you found some bugs, mind sharing the fixes? smile
_________________________
- Allen wavey
- What Drives You?

Top
#155244 - 11/04/02 04:10 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
zip updated with Burak's post and added the ubb header/footer to the layout smile
_________________________
- Allen wavey
- What Drives You?

Top
#155245 - 11/05/02 04:06 PM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
I just added an or to check for both cases of file extension - I haven't had time to fix the rest - for now I removed the edit feature, because the variables were getting switched, and removed the top-10 because of presumably a formatting issue, although it could be a variable carry over also. fixed a couple spots of the on off icons, that were missing part of the variable...that's about it so far. The rest is just a lot of additional building on your base so far.

Top
#155246 - 11/06/02 12:28 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
If you don't mind posting the files, I'll Beyond Compare in the pieces that would work here, thanks for the work smile
_________________________
- Allen wavey
- What Drives You?

Top
#155247 - 11/06/02 02:28 PM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
email me and I'll send them: bglynn@sbtontheweb.com

Top
#155248 - 11/10/02 12:08 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi,

what have I to do to show my forums-background Picture! Now there is only a black background....

Thanks
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155249 - 11/11/02 12:25 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Hello d-talk, have you used the most recent version? It should be following your styles you have set. You have a link to the problem?
_________________________
- Allen wavey
- What Drives You?

Top
#155250 - 11/11/02 04:37 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi AllenAyres,

the link is:
http://www.giga-board.com/cgi-bin/db.cgi?action=admin

Thanks
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155251 - 11/11/02 01:48 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
thank you, it seems to be doing the css wrong for the background image. I'll update it today smile
_________________________
- Allen wavey
- What Drives You?

Top
#155252 - 11/11/02 01:51 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
in the mean time, change this in lib.cgi:

background : http://www.giga-board.com/ubb/bg.jpg;

to:

background-image: url(http://www.giga-board.com/ubb/bg.jpg);
_________________________
- Allen wavey
- What Drives You?

Top
#155253 - 11/11/02 05:07 PM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
It works Thank you!!!

d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155254 - 11/11/02 11:46 PM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi,

is there any possibility to add other files than .zip, like .exe,.tar...... where must I modify the datafiles?

Thanks
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155255 - 11/12/02 12:32 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Files updated to version 2.5 as I just finished the wordlets. It should be much easier to customize to your site now smile

bglynn changed this line on line # 281 of db.cgi to add the ability to upload .jpg files. I haven't had time to check his changes smile

Code:
if ($zip ne "" && ($zip =~ /.jpg$/ or $zip =~ /.JPG$/)) {$zip = &UploadFile($zip,"$UploadPath/db","zip");}
_________________________
- Allen wavey
- What Drives You?

Top
#155256 - 11/12/02 05:10 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Sorry, it doesn't work! Internal Server error!

Can you please tell me also why I couldn't see the possibility to add a attachment when I edit a post! I rehack the file 10 times but nothing is to see there...

Thanks
d-tlak
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155257 - 11/12/02 08:26 AM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
There is no code there to add more than one attatchment or change the attatchment. You have to delete the record and create a new one of you need to change the attatchment right now.

Top
#155258 - 11/12/02 08:28 AM Re: [6.3.x] [beta] ubb.db v2.9
bglynn Offline
Member

Registered: 02/28/02
Posts: 33
If you want to add file types, in the line quoted above add statements like:

or $zip =~ /.exe$/ or $zip =~ /.EXE$/ or $zip =~ /.tar$/ or $zip =~ /.TAR$/

etc.

Top
#155259 - 11/12/02 10:28 AM Re: [6.3.x] [beta] ubb.db v2.9
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
or just add $zip =~ /.exe$/i, then you don't have to also add EXE tipsy
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#155260 - 11/12/02 08:55 PM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi, at which line i hav to ad it, I also get an internal server error....

thanks d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155261 - 11/13/02 07:37 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi,

another problem:

everytime a person postn a reply the signature will not be shown at the posting!

The sig is only shown by the topic-starter...

Thanks d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155262 - 11/14/02 01:27 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
do you have a link to that d-talk? Someone posting a reply shouldn't have anything to do with this mod smile
_________________________
- Allen wavey
- What Drives You?

Top
#155263 - 11/14/02 04:58 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi,

the problem with the signature was form an other hack... but i can't add other file-types like exe, jpg, ect...

link: http://www.giga-board.com/cgi-bin/dg.cgi+

thanks

d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155264 - 11/14/02 10:45 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
it's being filtered out... I'll check a couple other mods for the type of filtering being done smile
_________________________
- Allen wavey
- What Drives You?

Top
#155265 - 11/16/02 09:19 PM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi,

i have installed the myStyle hack too! Now at every style-template at the db the background of the standard-template is shown and not the backgroundcolor choosen at the cp!

What can I do?

thanks
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155266 - 11/20/02 10:46 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Un-install the mystyle hack wink Seriously, we can't account for every variation in modifications out there. You can hard-code the colors in for the db.cgi file if you like. Check the lib.cgi file and the css within.

Files updated to make it easier to add file types, check the first post for instructions smile
_________________________
- Allen wavey
- What Drives You?

Top
#155267 - 11/20/02 12:30 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
umm.. Allen, there is a lot of junk code in the files tipsy

for example [lib.cgi],

in sub CreateNewThread, this code looks like unnecessary? I couldnt locate any code using them:

Quote:
code:</font><hr />
Code:
#adjust bgcolor variables
if ($vars_style{BGColor} ne ""){$BGColor = qq(bgcolor="$vars_style{BGColor}");}
if ($vars_style{AltColumnColor1} ne ""){$AltColumnColor1 = qq(class="color1");}
if ($vars_style{AltColumnColor2} ne ""){$AltColumnColor2 = qq(class="color2");}
if ($vars_style{CategoryStripColor} ne ""){$CategoryStripColor = qq(bgcolor="$vars_style{CategoryStripColor}");}
if ($vars_style{TableColorStrip} ne ""){$TableColorStrip = qq(bgcolor="$vars_style{TableColorStrip}");}
if ($vars_style{PageBackground} ne ""){$PageBackground = qq(background="$vars_config{NonCGIURL}/$vars_style{PageBackground}");}
if ($vars_style{TableBorderColor} ne ""){
	$TableWidth2 = "100%";
	$BorderTop = $TBT;
	$BorderBottom = $TBB;
}  else {
	$TableWidth2 = $vars_style{TableWidth};
	$BorderTop = $TBT;
	$BorderBottom = $TBB;
}
<hr /></blockquote>also there are un-closed and un-openen curlies:

in sub Lock, while is not closed but you' ve closed it in Unlock tipsy

<blockquote><font class="small">code:
[qb]
Code:
sub Lock {
local ($lockname) = @_;
local ($endtime);
$endtime = 15;
$endtime = time + $endtime;
while (-e $lockname && time < $endtime) {
open (LOCKFILE, ">$lockname");
} #end lock sr

#############################################################################

sub Unlock {
local ($lockname) = @_;
close (LOCKFILE);
unlink ($lockname);
}
} # end Unlock sr
[/qb]
etc... etc...
_________________________
one bytecode to rule them all

Top
#155268 - 11/20/02 12:46 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
also sub GetAge looks unnecessary ?
_________________________
one bytecode to rule them all

Top
#155269 - 11/20/02 12:47 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Quote:
quote:
Originally posted by AllenAyres:
Thankyou Burak, I'll update the zip tomorrow - let me know if you see anything else please? smile
Look familar? tipsy

I am not a perl coder, if you are able to clean the files up a bit, I'd really appreciate it smile
_________________________
- Allen wavey
- What Drives You?

Top
#155270 - 11/20/02 12:48 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I think some of that is from the 'create new thread' stuff we are removing, it was used in the original version for ubb v5 smile
_________________________
- Allen wavey
- What Drives You?

Top
#155271 - 11/20/02 12:58 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
ok I can clean the code, but I cant adapt any ubb interface(s) to the files i.e. "$filehandle = new UBB::FileHandler(%vars_config);" => I dont know what it does tipsy
_________________________
one bytecode to rule them all

Top
#155272 - 11/20/02 12:59 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
Also the "SendAnEmail" sub looks unnecessary, and UBB has a module and sub for sending email afaik?
_________________________
one bytecode to rule them all

Top
#155273 - 11/20/02 01:13 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yeah, I am looking through the code as well, a lot of this deals with ubb v5 stuff that isn't needed now. Am I right to say if a sub isn't called to perform anywhere else other than where it is written (as in Sub SendAnEmail), then it can be removed? There's a lot in lib.cgi that isn't needed smile
_________________________
- Allen wavey
- What Drives You?

Top
#155274 - 11/20/02 01:21 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
yes, if no one calls, you can delete it...

so we can delete 'CreateNewThread' sub also?

Quote:
quote:
Originally posted by AllenAyres:
I think some of that is from the 'create new thread' stuff we are removing, it was used in the original version for ubb v5 smile
_________________________
one bytecode to rule them all

Top
#155275 - 11/20/02 01:32 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
does this look better? Everything still seems to work smile

http://www.ubbdev.com/ubb/upload/00000494/lib.txt
_________________________
- Allen wavey
- What Drives You?

Top
#155276 - 11/20/02 01:34 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
running an errand, will be back in a couple hours smile

Let me know what you think and I'll update the zips a bit later. Thank you for your help smile
_________________________
- Allen wavey
- What Drives You?

Top
#155277 - 11/20/02 02:08 PM Re: [6.3.x] [beta] ubb.db v2.9
Burak Offline
Addict

Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
You've deleted CreateNewThread, but db.cgi has a call to it (if you have not deleted it and others also smile )

Code:
	$thread = &CreateNewThread($CreateIn,$username,$message,$name);
_________________________
one bytecode to rule them all

Top
#155278 - 11/20/02 04:19 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thank you, removed the thread stuff from db.cgi as well smile

Zip file updated with latest revisions, just upload lib.cgi and db.cgi to get the latest changes smile
_________________________
- Allen wavey
- What Drives You?

Top
#155279 - 11/21/02 04:10 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi there are many bugs at the links , whenn a file added for exaple for back ther is the wrong path and so on...

thanks
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155280 - 11/21/02 10:38 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
got a link to the problem d-talk? Are they uploading to your ubb's noncgi/uploads folder?

I am sending you guys the same files we use here and we don't have path problems on the test db.
_________________________
- Allen wavey
- What Drives You?

Top
#155281 - 11/21/02 04:01 PM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
http://www.giga-board.com/cgi-bin/db.cgi

User: giga
pass: wert

thanks
d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155282 - 11/21/02 04:17 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
ok, I've checked maybe 25 files, they all worked except one, it might be corrupted or something, try re-uploading any you've seen and tell me if you are still having problems.
_________________________
- Allen wavey
- What Drives You?

Top
#155283 - 11/22/02 05:17 PM Re: [6.3.x] [beta] ubb.db v2.9
UmARsIZ Offline
Member

Registered: 02/25/02
Posts: 35
Loc: Turkiye / istanbul
At first help
1- How can I install worldlet of this mod?
2- How can I rearrange style of this mod?
I have just uploaded the file but I think I have to rearrange some files and pl_common.cgi.
_________________________
- - - - -
The best platform of Turkey that about Litetature, Art, History and Politic
www.plat-forum.org

Top
#155284 - 11/22/02 06:51 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Just upload the included wordlet file in the same directory as your other variables files. smile

In your ubb noncgi directory, upload the upload folder and the files within smile
_________________________
- Allen wavey
- What Drives You?

Top
#155285 - 11/23/02 11:09 AM Re: [6.3.x] [beta] ubb.db v2.9
messagedj Offline
Member

Registered: 01/23/02
Posts: 84
Loc: Amsterdam
Finally....

Great workx man!

Maybe you can also insert a rating system?

thnx for the work!
Message Deejay
_________________________
FOUNDER & WEBMASTER OF DJWEBPAGES


Dj Webpages
UBB addicted

Top
#155286 - 11/24/02 08:57 PM Re: [6.3.x] [beta] ubb.db v2.9
Raichu Babai Offline
Member

Registered: 04/01/01
Posts: 206
Loc: Brooklyn NY
Is there any way to set who can upload? I would only like admin and auth users.
Also a way to limit the size of the file uploaded
_________________________
My lame BUTT only have <img src="http://www.ubbdev.com/ud/?u=Raichu Babai&s=1" alt=" - " /> points,
because my POS computer ONLY grinded out <img src="http://www.ubbdev.com/ud/?s=2&u=Raichu Babai" alt=" - " /> results

Top
#155287 - 11/24/02 10:16 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Good input, those are some features that would be nice to add...

I think it would be a simple thing to only allow admins/moderators to upload, or list individual user numbers. I'll try to look at it this week smile
_________________________
- Allen wavey
- What Drives You?

Top
#155288 - 11/25/02 01:07 PM Re: [6.3.x] [beta] ubb.db v2.9
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
Is anyone haveing a problem with the redirect besides just me?
i got a problem with Edit and Del after i use it and hit the Click here to return it takes me to a blank page.
but outher then that everything works just fine.

(edit)
umm never mind i found the prob in vars_wordlets_db i am not sure if it is right or not but it works now.

Top
#155289 - 11/26/02 04:33 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi ClanKiller,

I have the problem too!!!

d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155290 - 11/26/02 11:59 AM Re: [6.3.x] [beta] ubb.db v2.9
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
hey d-talk i had the problem but the only want i could find to fix it was to look in.

(edit to make post smaller)

Top
#155291 - 11/26/02 01:08 PM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
This oode is not in vars_wordlets_db.cgi

d-talk
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155292 - 11/26/02 01:46 PM Re: [6.3.x] [beta] ubb.db v2.9
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
Well i should be d-talk it was in mine i did not just add it there myself.

Top
#155293 - 11/26/02 05:31 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
thanks for the fix CK, I'll get it added to the files smile
_________________________
- Allen wavey
- What Drives You?

Top
#155294 - 11/27/02 06:35 AM Re: [6.3.x] [beta] ubb.db v2.9
Yamaha Raptor Offline
Member

Registered: 07/24/00
Posts: 891
Loc: medway me
allen i fixed a few outher things i had problems with.

you can get the files at it at this Link

Top
#155295 - 11/27/02 06:57 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
muchas gracias laugh
_________________________
- Allen wavey
- What Drives You?

Top
#155296 - 11/29/02 12:24 AM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Zip updated with Clankiller's bugfixes (thank you smile ). Pay attention to the new folder with icons that needs to be uploaded as well smile
_________________________
- Allen wavey
- What Drives You?

Top
#155297 - 12/08/02 09:03 AM Re: [6.3.x] [beta] ubb.db v2.9
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi,

I get this error after i want to upload a zip file until i changed to UBB-Classic 6.4.0 Beta Release 1

Error:
>/home/www/web3/html/ubb/uploads/db/UBBclassic-6400-br1a-release.zip can't open output file

What can I do?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#155298 - 12/08/02 04:47 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
mebbe too big? I wouldn't recommend uploading the ubb zip, that could get you in a world of trouble wink
_________________________
- Allen wavey
- What Drives You?

Top
#155299 - 12/09/02 03:35 PM Re: [6.3.x] [beta] ubb.db v2.9
caroth Offline
Member

Registered: 05/30/01
Posts: 54
Hey great hack! I installed and tweaked it with ease. One question, how will it work with the UBB 6.4 MD5 hashes for password stuff?

Chris

Top
#155300 - 12/09/02 03:56 PM Re: [6.3.x] [beta] ubb.db v2.9
Ron M Offline
Admin Emeritus

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
Just by looking at the code quickly, they don't have the necessary routines and/or requires for decrypting the MD5 hash from the cookie. If they are presenting a login box, it doesn't need the MD5 routines, as the MD5 only affects the cookie.
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#155301 - 12/10/02 11:32 AM Re: [6.3.x] [beta] ubb.db v2.9
caroth Offline
Member

Registered: 05/30/01
Posts: 54
Quote:
quote:
Originally posted by Sub Zero:
Just by looking at the code quickly, they don't have the necessary routines and/or requires for decrypting the MD5 hash from the cookie. If they are presenting a login box, it doesn't need the MD5 routines, as the MD5 only affects the cookie.
Oops, yep you are right, I don't know what I was thinking. Thanks!

I do have an item for the wish list. My site is a car related site and we use the uploads db for guys to show their pictures, videos and sounds.

http://ubb.turboford.org/cgi-bin/db.cgi

I would like it if when the user uploads something, it automatically creates a directory with his username and puts all of his files in his directory. Then, when they add any additional items it checks to see if they have an existing directory. Thanks!

Top
#155302 - 12/10/02 04:09 PM Re: [6.3.x] [beta] ubb.db v2.9
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
You might check out mike's album.pl for that Chris. It's a very nice script that already works with 6.4 smile
_________________________
- Allen wavey
- What Drives You?

Top
#155303 - 01/08/03 05:43 AM Re: [6.3.x] [beta] ubb.db v2.9
twslex Offline
Member

Registered: 06/13/02
Posts: 100
Quote:
quote:
Originally posted by Sub Zero:
Just by looking at the code quickly, they don't have the necessary routines and/or requires for decrypting the MD5 hash from the cookie. If they are presenting a login box, it doesn't need the MD5 routines, as the MD5 only affects the cookie.
Just been testing with it, but to get access to the admin section u need the modifications to access it with md5.

Code:
[/code]Needs to be in place of:
[code]
Hopefully later on today i have the time to hack the other pieces.

As far as i can see right now, it works 100% ok.
She also the thread in beta mods 6.4.x (http://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=33;t=000014)

The only think that is bugging me is that the tendb.cgi file does not contain the correct cat number in the field, so the top 10 is not correct.

Later.

TwsLex

Top
Page 1 of 5 1 2 3 4 5 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks